{
  "properties" : { },
  "id" : "feeff7f262f142e4a73c9391ef827e77",
  "script" : null,
  "groupId" : "ded0996d4aa14841ae2d40edb1fa6d63",
  "name" : "删除设备",
  "createTime" : 1727071124873,
  "updateTime" : 1724895758724,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "removeDevice",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\"ids\":\"sds\"}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": \"Hello magic-api\"\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
var listId= Arrays.asList( body.ids.split(","))


db.table("ndmp_net_device_ip_chart").where().in("device_id",listId).delete()
db.table("ndmp_net_device_arp_chart").where().in("device_id",listId).delete()
db.table("net_device_link_chart").where().in("target_deviceid",listId).or().in("device_id",listId).delete()
db.table("ndmp_group_device_relation").where().in("device_id",listId).delete()
db.table("da_link").where().in("task_id",listId).delete()

db.table("ndmp_device").where().in("id",listId).delete()
db.table("ndmp_net_snmp_protocol").where().in("device_id",listId).delete()
db.table("ndmp_net_device_protocol").where().in("device_id",listId).delete()


return true